package com.github.mallxhcloudauth.controller;


import com.github.api.auth.vo.TokenInfoVO;
import com.github.common.core.response.ServerResponseEntity;
import com.github.common.core.util.BeanUtil;
import com.github.common.security.bo.TokenInfoBO;
import com.github.mallxhcloudauth.dto.RefreshTokenDTO;
import com.github.mallxhcloudauth.manager.TokenStore;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author FrozenWatermelon
 * @date 2020/6/30
 */
@RestController
@Tag(name = "token")
public class TokenController {

	@Autowired
	private TokenStore tokenStore;


	@PostMapping("/ua/token/refresh")
	public ServerResponseEntity<TokenInfoVO> refreshToken(@Valid @RequestBody RefreshTokenDTO refreshTokenDTO) {

	}

}
